#ifndef BEZIER_H
#define BEZIER_H

#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsItemAnimation>

class Bezier : public QWidget
{
    Q_OBJECT
public:
    explicit Bezier(QWidget *parent = 0);

    void setPoints(QPointF p1, QPointF p2, QPointF p3, QPointF p4);
    void setP1(QPointF p1);
    void setP2(QPointF p2);
    void setP3(QPointF p3);
    void setP4(QPointF p4);
    QPointF getP1();
    QPointF getP2();
    QPointF getP3();
    QPointF getP4();

    void desenhaPontos(QGraphicsScene *scene, QPointF p1, QPointF p2, QPointF p3, QPointF p4);
    void desenhaCurva(QGraphicsScene *scene);
    void percorrerCurva(QGraphicsItemAnimation *animacao);

    void setSoIda(bool checked);

    
signals:
    
public slots:

private:
    QPointF p1;
    QPointF p2;
    QPointF p3;
    QPointF p4;

    bool soIda;
    
};

#endif // BEZIER_H
